<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>绝对定位</title>
		<style>
			#d1,#d2,#d3{
				margin: 10px;
				background-color: darkgrey;
				text-align: center;
				height: 100px;
				width: 500px;
				font-size: 20px;
				line-height: 100px;
			}
			#d2{
				color: white;
				text-align: right;
				position: absolute;
				left: 0;
				top: 220px;
				width: 800px;
				height: 140px;
				background-color: #0000EE;
				opacity: 0.3;
			}
		</style>
	</head>
	<body>
		<div id="d1">1:html5</div>
		<div id="d2">2:css3</div>
		<div id="d3">3:ES6</div>
	</body>
</html>
